# encoding:utf-8

cha_times = dict()

with open('tangsi.txt', 'r') as f:
    for c in f.read():
        cha_times[c] =cha_times.setdefault(c, 0) + 1

for k in cha_times.keys():
    if cha_times[k] > 1:
        print('{}:{}'.format(k,cha_times[k]))
